home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM BV3 / BMUG PD-ROM Version BV3 (CDRM1097900).iso / HyperCard / XCMDs⁄XFCN / Color Icons⁄Windows / Color Icons_Windows / stack_-1.xml < prev    next >
Extensible Markup Language  |  1991-03-07  |  5KB  |  20 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>1</cardCount>
  7.     <cardID>2848</cardID>
  8.     <listID>2197</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>416</width>
  14.         <height>240</height>
  15.     </cardSize>
  16.     <script>-------------------------------------------------------------Copy these handlers.  Don't forget to do the windowNamesfunction, and the closeStack and openStack handlers as well.-------------------------------------------------------------on moveWindow--By: Ben Diebold--Date: 2/28/91--Notes: System message to tell when a window was moved.-- We need to know the rect before it was moved-- (oldCardRect), and the rect after it moves.  Then-- we can pass the difference to updateWindows by way-- of figureDelta.global newCardRect, oldCardRectif newCardRect is emptythen put rect of the card window into newCardRectput newCardRect into oldCardRectput the rect of the card window into newCardRectupdatewindows figureDelta(newCardRect,oldCardRect)pass moveWindowend moveWindowon updateWindows wMovement--By:  Ben Diebold--Date:  2/28/91--Notes:  wMovement is a two item list that represents-- the horizontal and vertical movement of the windows.-- A positive horizontal value moves the windows right, and-- a positive vertical value moves the windows down.-- Normally this handler will get it's wMovement parameters-- from the figureDelta function, but it doesn't have to.put windows() into activeWindowsrepeat with i = 1 to the number of lines of activeWindowsif line i of activeWindows is in windowNames() thenput rect of window line i of activeWindows into windowRectset rect of window (line i of activeWindows) to ¬¨item 1 of windowRect + item 1 of wMovement &","&¬¨item 2 of windowRect + item 2 of wMovement &","&¬¨item 1 of windowRect + item 1 of wMovement + 34 &","&¬¨item 2 of windowRect + item 2 of wMovement + 34end ifend repeatend updateWindowsfunction figureDelta newCardRect,oldCardRect--By: Ben Diebold--Date:  2/18/91--Notes:  Function gets two card rects, and figures the amount of-- movement between them.put item 1 of newCardRect - item 1 of oldCardRect into dLeftput item 2 of newCardRect - item 2 of oldCardRect into dTopput dLeft&","&dTop into wMovementreturn wMovementend figureDeltaon hideColorButtonslock screenrepeat with i = 1 to the number of items of windowNames()if item i of windowNames() is in windows()then close window (item i of windowNames())end repeatunlock screenend hideColorButtonson openStackglobal newCardRectput the rect of card window into newCardRectend openStackon closeStackhidecolorbuttonsend closeStackon mouseUpInPicture wNameanswer wNameend mouseUpInPicturefunction windowNamesreturn "Banana 2000,Bomb,Books I,Books II,Broken Disk,Bugs Bunny,"&¬¨"Calvin,Chick,Clock,Color Screen,Compass,Cowdog,Daffy Duck,"&¬¨"Daffy Duck II,Disk,Dragon,Earth,Empty Trash,Facade,"&¬¨"Fractal,Fractal Doc,Full Trash,Green Mac,Hard Drive,Hobbes,Lady,"&¬¨"Letters,Mac II With Apple,Mac Logo,Mac With Apple,Oscar,"&¬¨"Palette,Pancho Pistolas,Porky Pig,Resedit,Rooster,Sherlock,"&¬¨"Smelly Trash,Sylvester,Tasmanian Devil,Tweetie,Yosemite Sam"end windowNames--------------------------------------------------------------------------------------------------------------------------on dcbdisplaycolorbuttonsend dcbon sedit script of this stackend son hcbhidecolorbuttonsend hcbUnused stuff-- on displayColorButtons-- get rect of card window-- put item 4 of it - item 2 of it into wHeight-- put 35 into wLeft-- put wHeight - 40 into wTop-- put wLeft + 34 into wRight-- put wTop + 34 into wBottom-- put 1 into columnNumber-- put windowNames() into availableWindows-- repeat 16-- put any item of availableWindows into windowName-- put offset(windowName,availableWindows) into startChar-- put startChar + length(windowName) into endChar-- delete char startChar to endChar of availableWindows-- if columnNumber mod 4 = 1 then-- add 35 to wTop-- add 35 to wBottom-- put item 1 of oldRect into wLeft-- put wLeft + 34 into wRight-- else-- add 35 to wLeft-- add 35 to wRight-- end if-- put wLeft&","&wTop&","&wRight&","&wBottom into newRect-- picture windowName,resource,rect,false,4-- set the rect of window windowName to newRect-- show window windowName-- add 1 to columnNumber-- end repeat-- end displayColorButtons</script>
  17.     <background id="2772" file="background_2772.xml" name="" />
  18.     <card id="2848" file="card_2848.xml" marked="false" name="" owner="2772" />
  19. </stack>
  20.